package com.ideaaedi.zoo.example.springboot.flowable.sharding.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Administrator
 * @since 1.0.0
 */
@Getter
@Setter
@TableName("ACT_HI_ENTITYLINK")
@Schema(name = "ActHiEntitylinkPO", description = "历史实体关联信息")
public class ActHiEntitylinkPO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId("ID_")
    @Schema(description = "id")
    private String id;

    @TableField("LINK_TYPE_")
    @Schema(description = "实体之间的关联类型")
    private String linkType;

    @TableField("CREATE_TIME_")
    @Schema(description = "创建时间")
    private Date createTime;

    @TableField("SCOPE_ID_")
    @Schema(description = "业务域标识")
    private String scopeId;

    @TableField("SUB_SCOPE_ID_")
    @Schema(description = "业务域子域标识")
    private String subScopeId;

    @TableField("SCOPE_TYPE_")
    @Schema(description = "业务域类型")
    private String scopeType;

    @TableField("SCOPE_DEFINITION_ID_")
    @Schema(description = "业务域关联的流程定义id")
    private String scopeDefinitionId;

    @TableField("PARENT_ELEMENT_ID_")
    private String parentElementId;

    @TableField("REF_SCOPE_ID_")
    private String refScopeId;

    @TableField("REF_SCOPE_TYPE_")
    private String refScopeType;

    @TableField("REF_SCOPE_DEFINITION_ID_")
    private String refScopeDefinitionId;

    @TableField("ROOT_SCOPE_ID_")
    private String rootScopeId;

    @TableField("ROOT_SCOPE_TYPE_")
    private String rootScopeType;

    @TableField("HIERARCHY_TYPE_")
    private String hierarchyType;
    
    @Schema(description = "日期（yyyy-MM-dd）")
    @TableField("sharding_date")
    private String shardingDate;
}
